#pragma once
#include "../Core/DCoordinates3.h"

namespace cagd
{
    typedef double (*RealFunction)(double);
    typedef DCoordinate3 (*Function)(DCoordinate3);

    double Simpson1D(RealFunction f, double u_min, double u_max, unsigned int div_point_count);
    DCoordinate3 Simpson1D(Function f, DCoordinate3 u_min, DCoordinate3 u_max, unsigned int div_point_count);
}
